package com.stylefeng.guns.modular.customer.transfer;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 付款计划 excel模板类
 */
@Data
public class PayPlanXlsM {
    @ExcelIgnore
    private Integer customerCompanyId;

    @Excel(name = "客户企业名称",width = 20)
    @NotEmpty(message = "客户企业名称不能为空")
    private String customerCompanyName;

    @Excel(name = "统一社会信用代码",width = 20)
    @NotEmpty(message = "统一社会信用代码不能为空")
    private String unifiedSocialCreditCode;

    @Excel(name = "月份")
    private String month;
    /**
     * 供应商名称
     */
    @Excel(name = "供应商名称")
    @NotEmpty(message = "供应商名称不能为空")
    private String providerName;
    /**
     * 付款金额
     */
    @Excel(name = "付款金额")
    private String payAmount;
    /**
     * 现金
     */
    @Excel(name = "现金")
    private String crash;
    /**
     * 银票
     */
    @Excel(name = "银票")
    private String silverTicket;
    /**
     * 银票期限
     */
    @Excel(name = "银票期限")
    private String silverTicketPeriod;
    /**
     * 商票
     */
    @Excel(name = "商票")
    private String businessTicket;
    /**
     * 商票期限
     */
    @Excel(name = "商票期限")
    private String businessTicketPeriod;
    /**
     * 航信
     */
    @Excel(name = "航信")
    private String hangxin;
    /**
     * 航信期限
     */
    @Excel(name = "航信期限")
    private String hangxinPeriod;

    public static List<PayPlanXlsM> example(){
        List<PayPlanXlsM> list = new ArrayList<>();
        PayPlanXlsM payPlanXlsM = new PayPlanXlsM();
        list.add(payPlanXlsM);
        payPlanXlsM.setCustomerCompanyName("xxx有限公司");
        payPlanXlsM.setUnifiedSocialCreditCode("91440300088450013U");
        payPlanXlsM.setMonth("2017-01");
        payPlanXlsM.setProviderName("京东");
        payPlanXlsM.setPayAmount(String.valueOf(10.1));
        payPlanXlsM.setCrash(String.valueOf(10.1));
        payPlanXlsM.setSilverTicket(String.valueOf(0.0));
        payPlanXlsM.setSilverTicketPeriod("3");
        payPlanXlsM.setBusinessTicket(String.valueOf(0.0));
        payPlanXlsM.setBusinessTicketPeriod("0");
        payPlanXlsM.setHangxin(String.valueOf(0.0));
        payPlanXlsM.setHangxinPeriod("0");
        return list;
    }
}
